<?php
namespace Home\Controller;
use Think\Controller;
/**
* ==============================================
*  http://www.liuhuanhui.cn
* ==============================================
* @date: 2014-10-8
* @author:liuhuanhui
* @encoding: UTF-8
*/
class IndexController extends Controller {	
	/**
	 * 前台首页
	 */
    public function index(){
    	$this->controls=D('PageControl')->where('page="Index" and pid=0 and visible<>"n"')->order('number')->select();
    	$this->blogs=D('BlogsView')->where('state<>"remove"')->order('date desc')->limit(8)->select();
    	$this->display();
    }
    /**
     * 注册用户
     */
    public function register()
    {
    	$this->display();
    }

}